#include <iostream>
#include "SharedMemory.hpp"
#include <unistd.h>
#include <string>
int main()
{
    SharedMemory<std::string> shm;
    shm.CreShmid();
    std::string* a = shm.GrtSharedMemory();
    int n =10;
    while(n)
    {
        std::cout << "请输入:";
        std::cin >> (*a);
        --n; 
        std::cout << std::endl;
    }
    return 0;
}